package com.jishuo.nontax.bfc.dao;

import com.jishuo.nontax.bean.vo.BackpaybillVO;
import com.jishuo.nontax.bean.vo.CheckDataVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author hlp
 * @date 2022/12/20 11:00
 * @Description:
 */
@Mapper
public interface BackBillMapper {

    int insertBackpaybill(BackpaybillVO backPayBill);

    int updateBackPayBill(BackpaybillVO backPayBill);

    /**
     * 付款后更新银行流水
     * @param backPayBill
     * @return
     */
    int updateBackBillBankAffirm(BackpaybillVO backPayBill);

    int getFsbackpaybillBillnum(String backbillnum);

    BackpaybillVO findBackBillInfo(String backbillnum);

    int updateBillState(@Param("messageid") long messageid,@Param("billstate") int billstate);

    BackpaybillVO findBackBillInfo1(@Param("billnum") String billnum, @Param("bankid") int bankid);

    int deleteBackpaybillfiance(@Param("bankid")String bankid, @Param("paybankdt")String paybankdt,@Param("bankaffirm")String bankaffirm);

    int saveBackpaybillfiance(CheckDataVO checkDataVO);

    /**
     * 发送消息时更新messageid
     * @param backpaybillVO   退付书单据对象
     * @return
     */
     int updateMsgBackBill(BackpaybillVO  backpaybillVO);

     int backOutBackBill(Long backbillid);

    int updateHxBankFfirm(@Param("hxbankaffirm")String hxbankaffirm,@Param("backbillnum")String backbillnum);

     List<BackpaybillVO> findBackPayBillPage(BackpaybillVO backpaybillVO);

    /**
     * 高出根据id集合查询票据
     * @param billids
     * @return
     */
    List<BackpaybillVO> findBackPayBill(long[] billids);

}
